﻿@model Scrumrun.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}

<h2>@ViewBag.Title.</h2>


@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>

        <legend>Log in Form</legend>

        <div class="control-group">
            @Html.LabelFor(m => m.UserName, new { @Class = "control-label" })

            <div class="controls">
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>
        </div>
        <div class="control-group">
            @Html.LabelFor(m => m.Password, new { @Class = "control-label" })

            <div class="controls">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>
        </div>
        <div class="control-group">
            <div class="controls">
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
            </div>
        </div>
        <div class="control-group">
            <div class="controls">
                <input type="submit" value="Log in" class="btn btn-primary" />
            </div>
        </div>

    </fieldset>
    
    <p>
        @Html.ActionLink("Register", "Register") if you don't have an account.
    </p>
}


@section Scripts {

}
